package com.dxtx.test;

import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

/**
 * Created by user on 2017/2/16.
 */
public class TitleFragment extends Fragment {
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        ImageView view=new ImageView(container.getContext());
        view.setLayoutParams(new ViewGroup.LayoutParams(-1,200));
        view.setImageResource(R.mipmap.liy);
        view.setScaleType(ImageView.ScaleType.FIT_XY);
        view.setBackgroundColor(Color.BLUE);
        return view;
    }
}
